<template>
  <div class="course-container">
    <div class="header">
      <div class="back-btn" @click="$router.go(-1)">
        <span class="icon">←</span> 返回
      </div>
      <h1>课程详情</h1>
    </div>
    
    <div class="course-info">
      <h2>{{ courseInfo.name }}</h2>
      <p>{{ courseInfo.description }}</p>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()

const courseInfo = ref({
  name: '数据结构',
  description: '这是一门基础课程'
})
</script>

<style scoped>
.course-container {
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.back-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}
</style> 